package org.fh.inductionLamp.impl.client;

import org.fh.inductionLamp.api.LampClient;
import org.fh.inductionLamp.api.LampRequest;
import org.fh.inductionLamp.api.LampResponse;

/**
 * @Author: wwy
 * @Date: 2020/10/22 9:57
 */
public class DefaultLampClient implements LampClient {
    private int srcId;
    private int destId;
    public DefaultLampClient(int srcId,int destId){
        this.srcId = srcId;
        this.destId = destId;
    }
    @Override
    public <T extends LampResponse> T execute(LampRequest var1) {
        return var1.execute(srcId,destId);
    }
}
